//
//  JddXiugaiPwd.m
//  PlayBall
//
//  Created by superman on 14-8-22.
//
//

#import "JddXiugaiPwd.h"

@implementation JddXiugaiPwd
@synthesize xinPwd;
@synthesize userName;
@synthesize phoneNum;

- (void)main
{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    NSString *bodyString = [JddParameterBuilder senUserName:userName andPhoneNum:phoneNum andNewPwd:xinPwd];
    NSData *simmitNewPwd = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    
//    NSString *str = [NSJSONSerialization JSONObjectWithData:simmitNewPwd options:NSJSONReadingMutableContainers error:nil];
//    NSLog(@"=========333=========%@",str);
    
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(XiugaiPwdResult:) withObject:simmitNewPwd waitUntilDone:NO];
}

@end
